#include "startmenu.h"

StartMenu::StartMenu(QWidget* parent):QWidget(parent) {
    QVBoxLayout *layout=new QVBoxLayout(this);

    titleLabel=new QLabel("Zeus-Pater",this);
    titleLabel->setAlignment(Qt::AlignCenter);
    titleLabel->setStyleSheet("font-size:48px;font-weight:bold;");

    introduction=new QLabel("你的名字是Zeus Pater,你的使命是抓捕敌人——Dagda!\n"
     "小心，这是极其危险的，你要警惕那些远古的咒语，你的敌人可能会突然消失，马上又从后方出现"
     "\n注意一些墙壁和墙角，你也许会走运的······",this);

    startButton=new QPushButton("嗨嗨嗨，祝你好运！",this);
    startButton->setStyleSheet("font-size:24px;padding:10px");

    layout->addStretch();
    layout->addWidget(titleLabel);
    layout->addStretch();
    layout->addWidget(introduction);
    layout->addStretch();
    layout->addWidget(startButton);
    layout->addStretch();


    connect(startButton,&QPushButton::clicked,this,&StartMenu::startGame);
}


